{% extends "base.html" %}
{% block title %}Результаты игры{% endblock %}

{% block contentheader %}Результаты{% endblock %}
{% block content %}
<strong> Неиспользованые слова: </strong>
{% for word in unused_words %}
{{word.text}},
{% endfor %}
{{last_unused_word.text}}
<br>
<table border>
<tr> <td> <strong> Игрок </strong> </td> <td> <strong> Объяснил </strong> </td> <td> <strong> Угадал </strong> </td> <td> <strong> Всего </strong> </td> </tr>
{% for pair in pairs %}
<tr> <td> {{pair.player_1}} </td> <td> {{pair.first_explained}} </td> <td> {{pair.first_guessed}} </td> <td rowspan=2> {{pair.sum}} </td> </tr>
<tr> <td> {{pair.player_2}} </td> <td> {{pair.first_guessed}} </td> <td> {{pair.first_explained}} </td> <td rowspan=2> </td> </tr>
{% endfor %}
<!---
Формат указания игроков
<tr> <td> Player1 </td> <td> 1 </td> <td> 3 </td> <td rowspan=2> 4 </td> </tr>
<tr> <td> Player2 </td> <td> 3 </td> <td> 1 </td> <td> </td> </tr>
-->



{% endblock %}
